/*
 *  Copyright (c) 2014 ZengYajian
 *
 *  Simple wrapper for read/write files.
 *  by ZengYajian
 */

#ifndef __iolib_h__
#define __iolib_h__

struct io_handler {
	int file_fd;
	long file_size;
};

struct io_handler *io_file_init(const char *path, int mod);
int io_file_read(struct io_handler *h, char *buffer, int len);
void io_file_destroy(struct io_handler *h);

#endif
